﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_document_message")]
    [Serializable]
    public class Document_Message : ObjectBase<Document_Message>
    {
        [Column(Length = 11), NotNull(""), Default(0)]
        public Int32 did { get; set; }

        [Column(Length = 11), NotNull(""), Default(0)]
        public Int32 userid { get; set; }

        [Column(Length = 11), NotNull(""), Default(0)]
        public Int32 adminid { get; set; }

        [Column(Length = 11), NotNull(""), Default("0")]
        public String ipadd { get; set; }

        [Column(Length = 50), NotNull("")]
        public String lng { get; set; }

        [Column(Length = 100), NotNull("")]
        public String name { get; set; }

        [LongText, NotNull("")]
        public String content { get; set; }

        [LongText]
        public String recontent { get; set; }

        [TinyInt, Column(Length = 1), NotNull(""), Default(0)]
        public Int32 isreply { get; set; }

        [TinyInt, Column(Length = 1), NotNull(""), Default(1)]
        public Int32 isclass { get; set; }

        [NotNull("")]
        public DateTime addtime { get; set; }

        public DateTime retime { get; set; }

        [Column(Length = 7), NotNull(""), Default(0)]
        public Int32 support { get; set; }

        [Column(Length = 7), NotNull(""), Default(0)]
        public Int32 oppose { get; set; }

    }
}
